package com.wutianyi.module.commons.config;

import java.util.HashMap;
import java.util.Map;

public enum ConfigTypeEnum {

	COMPANY_STANDARD_PROPERTIES(1);

	private static Map<Integer, ConfigTypeEnum> maps = new HashMap<Integer, ConfigTypeEnum>();

	static {
		for (ConfigTypeEnum type : ConfigTypeEnum.values()) {
			maps.put(type.getType(), type);
		}
	}

	private int type;

	private ConfigTypeEnum(int type) {
		this.type = type;
	}

	public int getType() {
		return type;
	}

	public static ConfigTypeEnum getConfigType(int type) {
		return maps.get(type);
	}
}
